package com.hxzy.service;

import java.util.Date;
import java.util.List;

import com.hxzy.entity.Team;

public interface TeamService {
    
    ServiceResult<Team> read(long id);
    
    List<Team> list(Integer status);

    int invite(long uid, long teamId, String email);

    int count(long uidCreate, int pageSize);

    boolean findTeamName(String name, String subdomain);

    ServiceResult<Team> create(final String name, final String desc, final String subdomain,final String intro,  Date gmtBegin,
            Date gmtEnd);
    
    ServiceResult<Team> update(long id, String name, String desc, String intro, String subdomain, Date gmtBegin, Date gmtEnd);
    List<Team> myTeam(Long uidCreate);
}
